import request from '@/utils/request'

export function getTeacherList(name,schoolno,current,size) {
  return request.get("/teacher/list",{params:{name,schoolno,current,size}})
}
export function del(ids) {
  return request.post("/teacher/delete",ids)
}
export function update(teacher) {
  return request.post("/teacher/update",teacher)
}

export function save(teacher) {
  return request.post("/teacher/save",teacher)
}
export function upload(form) {
  return request.post("/teacher/upload",form,{headers:{'Content-type': 'multipart/form-data'}})
}
